<!--<div ng-controller="shortMessageListCtrl">-->
<!--<div ng-controller="chatMessageListCtrl">-->
<div ng-controller="chatMessageListCtrl"><!--TODO:test-->
    <!--不能写两个ng-controller，否则会导致不能传递参数-->
    <!--相同的ng-controller的操作应该放在同一个div下-->

    <form class="form-inline" role="form">
        <table>
            <tr>
                <!--old，发送人username， 2015-4-14
                <td>
                    <div class="input-group">
                        <label class="control-label" >发送人username:</label>
                        <input type="text" class="form-control" placeholder="发送人username" ng-model="shortMessage.inputFrom" ng-init="">
                    </div><br>
                </td>-->
                <td>
                    <div class="input-group">
                        <label class="control-label" >某人的username:</label>
                        <input type="text" class="form-control" placeholder="某人的username" ng-model="shortMessage.inputFrom" ng-init="">
                    </div><br>
                </td>

                <!--<td>
                    <div class="input-group">
                        <label class="control-label" >接收人的username:</label>
                        <input type="text" class="form-control" placeholder="接收人的username" ng-model="shortMessage.to" ng-init="">
                    </div><br>
                </td>-->
                <!--<td>
                    <div class="input-group">
                        <label class="control-label" >验证码:</label>
                        <input type="text" class="form-control" placeholder="验证码" ng-model="shortMessage.verificationCode" ng-init="">
                    </div><br>
                </td>-->
                <!--<td>
                    <div class="input-group">
                        <label class="control-label" >消息类型:</label>
                        <input type="text" class="form-control" placeholder="txt:文本消息, img:图片, loc：位置, audio：语音" ng-model="shortMessage.messageType" ng-init="">
                    </div><br>
                </td>-->
            </tr>
            <tr>
                <!-- <td>
                     <div class="input-group">
                         <label class="control-label" >消息内容:</label>
                         <input type="text" class="form-control" placeholder="消息内容" ng-model="shortMessage.message" ng-init="">
                     </div><br>
                 </td>-->
                <!--<td>
                    <div class="input-group">
                        <label class="control-label" >单聊还是群聊:</label>
                        <input type="text" class="form-control" placeholder="chat:单聊，groupchat:群聊" ng-model="shortMessage.status" ng-init="">
                    </div><br>
                </td>-->
                <!--<td>
                    <div class="input-group">
                        <label class="control-label" >起始日期:</label>
                        <input type="text" class="form-control" placeholder="起始日期" ng-model="shortMessage.dateStart" ng-init="">
                    </div><br>
                </td>
                <td>
                    <div class="input-group">
                        <label class="control-label">终止日期:</label>
                        <input type="text" class="form-control" placeholder="终止日期" ng-model="shortMessage.dateEnd" ng-init="">
                    </div><br>
                </td>-->
                <td>
                    <div class="control-group">
                        <div class="controls">
                            <!--<button type="submit" class="btn btn-sm" ng-click="searchChatMessage(shortMessage)" >搜索</button>-->
                            <!--<button type="submit" class="btn btn-sm" ng-click="searchChatMessage333()" >搜索-用户兴趣推荐列表</button>-->
                            <button type="submit" class="btn btn-sm" ng-click="searchChatMessage444(shortMessage.inputFrom)" >搜索-用户兴趣推荐列表</button>
                        </div>
                    </div>
                </td>
                <td>
                    <div class="control-group">
                        <div class="controls">
                            <!--TODO::后台service哪里用到这些参数了？
                            【1:{{scope_userId}}】
                            【2:{{shortMessage.userId='66customerService'}}】
                            <a href ng-click="searchChatMessage(shortMessage)" >搜索2:传userId</a>-->
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </form>
    </br>


    <!--TODO，2015-4-14-->
    <!--【<a href ng-click="searchChatMessage333()" >用户的兴趣推荐列表</a>】
    <br>-->
    <!--
    【11:{{georgeInterestList}}】

【21：{{georgeInterestList.data}}】
【20：{{georgeInterestList.data.rec}}】
    -->


    <!--tags列表-->
    【该用户的昵称：{{georgeInterestList.data.nikeName}}】
    <br>
    【该用户的标签：{{georgeInterestList.data.tags}}】



    </br>
    <br>
    <br>
    <br>
    <ul class="nav nav-tabs">
        <!--查询全部人 的聊天记录-->
        <!--<li ng-if="shortMessage.inputFrom == null" class="active"><a href="#tab_a" data-toggle="tab">用户兴趣推荐列表</a></li>-->
        <li class="active"><a href="#tab_a" data-toggle="tab">用户兴趣推荐列表</a></li>

    </ul>
    <div class="tab-content">
        <div class="tab-pane active" id="tab_a">

            <!--TODO::上面的table-->
            <!--table：给用户推荐的 问答-->
            <!--<table ng-if="shortMessage.inputFrom != null"  class="account-bg"  >--><!--"table table-condensed" "accordion-boxed""account-bg"--> <!--class="ui-tabs-nav"-->
            <table  class="account-bg table table-condensed" maxlength="323"><!--"table table-condensed" "accordion-boxed""account-bg"--> <!--class="ui-tabs-nav"-->
                <!--【{{shortMessage.inputFrom}} 的联系人列表】-->
                <ul class="nav nav-tabs">
                    <li class="active"><b><!--{{shortMessage.inputFrom}}--> 给用户推荐的 问答</b></li>
                </ul>

                <tr>
                    <th>qid<!--deviceId--></th>
                    <th>desc</th>
                    <th>dateCreated</th>
                    <th>createdBy</th>
                    <th>tags</th>
                    <th>score</th>

                </tr>
                <tr ng-repeat="rec in georgeInterestList.data.rec">
                    <!--<td><a href ng-click="searchChatLogByTwoUser(shortMessage.inputFrom, friendUserId)" >联系人：{{friendUserId}}</a></td>-->
                    <td>{{rec.qid}}</td>
                    <td>{{rec.desc}}</td>
                    <td>{{rec.dateCreated}}</td>
                    <td>{{rec.createdBy}}</td>
                    <td><b>{{rec.tags}}</b></td>
                    <td><a class="btn btn-primary btn-xs" >{{rec.score}}</a></td>
                </tr>
            </table>




            <br>
            <!--TODO::最外层的大table-->
            <!--<table ng-if="shortMessage.inputFrom != null">-->

            <table>
                <!--<table class="table-condensed" width="50">-->
                <tr>
                    <td class="valign-top"  width="100"> <!--"bottom"--> <!--TODO:大table的第一列-->


                        <!--用户自己的 浏览记录-->
                        <!--<table  class="table table-condensed bg-info" width="50">--><!--"table table-condensed" "accordion-boxed""account-bg"--> <!--class="ui-tabs-nav"-->
                        <table  class="table table-condensed bg-info ">
                            <!--【{{shortMessage.inputFrom}} 的联系人列表】-->
                            <ul class="nav nav-tabs">
                                <li class="active"><b><!--{{shortMessage.inputFrom}}--> 用户自己的 浏览记录</b></li>
                            </ul>

                            <tr>
                                <th>qid<!--deviceId--></th>
                                <th>desc<!--mobilePhone--></th>
                                <!--<th>dateCreated</th>-->
                                <th>createdBy</th>
                                <th>tags</th>
                                <th>score</th>

                            </tr>
                            <tr ng-repeat="self in georgeInterestList.data.self">
                                <!--<td><a href ng-click="searchChatLogByTwoUser(shortMessage.inputFrom, friendUserId)" >联系人：{{friendUserId}}</a></td>-->
                                <td>{{self.qid}}</td>
                                <td class="">{{self.desc}}</td>
                                <!--<td width="25" class="">1.{{self.tags}}</td>-->
                                <!--<td nowrap>{{self.tags}}</td>-->
                                <!--<td>{{self.dateCreated}}</td>-->
                                <td>{{self.createdBy}}</td>
                                <td nowrap><b>{{self.tags}}</b></td>
                                <td><a class="btn btn-warning btn-xs" >{{self.score}}</a></td><!--btn-success btn-warning-->
                            </tr>
                        </table>



                    </td><!--TODO::end，大table的第一列-->




                    <!--<td class="valign-top">--><!--TODO:大table的第二列-->
                    <td class="valign-top">
                        <!--<table ng-if="shortMessage.inputFrom != null">
                            <tr ng-repeat="friendUserId in searchChatMessage_results.data">
                                <td><a href ng-click="searchChatLogByTwoUser(shortMessage.inputFrom, friendUserId)" >联系人1：{{friendUserId}}</a></td>&lt;!&ndash;TODO::写死了&ndash;&gt;
                            </tr>
                        </table>-->




                        <!--相似用户的浏览记录-->
                        <!--<table class="table table-condensed bg-primary" width="100">-->
                        <table class="table-condensed bg-primary" width="100"><!-- bg-warning-->
                            <thead>

                            <ul class="nav nav-tabs">
                                <li class="active"><b><!--{{shortMessage.inputFrom}}--> 相似用户的 浏览记录</b></li>
                            </ul>

                            <tr>
                                <!--<th>score&lt;!&ndash;errCode&ndash;&gt;</th>-->
                                <th>questions<!--deviceId--></th>
                                <!--<th>uid</th>-->

                            </tr>
                            </thead>
                            <tbody>
                            <!--<tr ng-repeat="others in georgeInterestList.data.others">
                                <td>{{others.score}}</td>
                                <td>{{others.qid}}</td>
                            </tr>-->
                            <tr ng-repeat="other in georgeInterestList.data.others">
                                <!--<td><a href ng-click="searchChatLogByTwoUser(shortMessage.inputFrom, friendUserId)" >联系人：{{friendUserId}}</a></td>-->

                                <!--
                                <td>
                                    <a class="btn btn-facebook btn-xs" >{{other.score}}</a>
                                    <br>
                                    【{{other.nickName}}
                                    <br>
                                    （{{other.uid}}）】
                                </td>-->
                                <!--<td>{{other.uid}}</td>-->


                                <td><!--第二列-->
                                    <!--
                                    {{other.questions}}
                                    {{$scope.listlist = other.questions}}

                                    -->

                                    <a class="btn btn-facebook btn-xs" >{{other.score}}</a>【{{other.nickName}}，（UID：{{other.uid}}）】


                                    <!--span::questions-->
                                    <!--<span  ng-repeat="week in luckyUserList">-->
                        <span  ng-repeat="week in other.questions">
                            <!--
                            <div class="result result-no">
                                <p class="name">{{week.week}} </p>
                                <p  class="name">({{week.date}})</p>
                            </div>
                            -->
                            <!--<div style="background-color:#fff;margin-left: 3%;margin-right:3%;">-->
                            <div style="margin-left: 3%;margin-right:3%;"><!--background-color:#fff;-->
                                <!--<div style="text-align: center;">-->

                                <p style="font-size:18px;color:#f7744a;font-weight:bold"><a class="btn btn-info btn-xs" >{{week.score}}</a>  {{week.tags}}</p><!---->
                                <!--<p style="font-size:12px;color:#B6B6B4;">({{week.qid}})</p>-->
                                <!--<p style="font-size:12px;color:#B6B6B4;"><b>{{week.tags}})</b></p>-->
                                <p style="font-size:12px;color:#B6B6B4;">({{week.desc}})，，（{{week.qid}}）</p>
                                <hr>
                                <!--</div>-->

                                <!--<ul  ng-repeat="user in week.uList">
                                    <div class="result result-list">
                                        <li class="clearfix">
                                            <div class="fl">
                                                <img src="{{user.profileImage}}" class="avatar"/><div><p class="name">{{user.userName}}<span ng-show="user.roomUnit!=null&&user.roomUnit!=''"><img src="images/choujiang/location.png"  style="display:inline-block;vertical-align:middle;width:10%;"/>{{user.roomUnit}}单元</span></p><p>本周发布{{user.questionCount}}条</p></div>
                                            </div>
                                            <div class="fr">
                                                <img src="{{user.giftImage}}" style="display:inline-block;vertical-align:middle;width:80%;" />
                                            </div>
                                        </li>
                                    </div>
                                </ul>-->
                                <!--<br>-->
                                <!--<hr>
                                <br>-->
                            </div>
                            <!--<br>
                                <hr>
                                <br>
                            <br>
                                <hr>
                                <br>-->
                        </span>




                                    <!--子子table-->
                                    <!--<a href="#" ng-repeat="rec1 in other.questions">
                                        <a href="#">{{rec1.qid}}</a>,
                                        <a href="#">{{rec1.desc}}</a>,
                                        <a href="#">{{rec1.score}}</a>,
                                    </tr>-->


                                    <br>
                                    【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【【

                                    <!--table：：questions-->



                                </td><!--TODO：【end td】questions这一列-->


                            </tr>
                            </tbody>
                        </table>





                        <!--大table结尾-->
                    </td>
                </tr>
            </table>
            <!--大table结尾-->

        </div>

    </div>

</div>